package com.pipayshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pipayshop.entity.HotelAccountInfo;
import com.pipayshop.entity.vo.AccountInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 用户账户表 Mapper 接口
 * </p>
 *
 * @author nws
 * @since 2023-07-25
 */
@Mapper
public interface HotelAccountInfoMapper extends BaseMapper<HotelAccountInfo> {

    AccountInfoVO selectAccountInfo(@Param("uid") String uid);

    int createAccount(@Param("uid")String uid);

    int updatePointBalanceByUid(@Param("transactionAmount") BigDecimal transactionAmount, @Param("uid")String uid);

    BigDecimal selectAccountBalance(String uid);

}
